package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.RpAge;
import com.yegs.jltqc.VO.RpXunjian;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RpXunjianRepository extends JpaRepository<RpXunjian,Long> {

    RpXunjian findFirstByIdIsAfter(Long id);

    RpXunjian findFirstByIdBeforeOrderByIdDesc(Long id);

    RpXunjian findFirstByOrderById();

    RpXunjian findFirstByOrderByIdDesc();

    Page<RpXunjian> findAll(Specification<RpXunjian> specs, Pageable pageable);

}
